﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Site.master" AutoEventWireup="true"
    CodeFile="WIN15_2E.aspx.cs" Inherits="IFRS_WIN15_2E" %>

<%@ Register Assembly="vsm.CustomControl" Namespace="vsm.CustomControl" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script src="../Content/js/Currency.js" type="text/javascript"></script>
    <link href="../Content/plugins/jquery-ui/themes/base/jquery.ui.all.css" rel="stylesheet"
        type="text/css" />
    <script type="text/javascript">
        window.SetValueCollateralType = function (Value1, Value2) {
            document.getElementById("<%= hidColleteralType.ClientID %>").value = Value1;
            document.getElementById("<%= txtColleteralType.ClientID %>").value = Value2;
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="container-custom">
        <div class="table_master">
            <fieldset class="fsStandard" style="padding-bottom: 5px;">
                <div class="table_detail">
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblDATE_TRANSACTION" runat="server" Text="<%$Resources:ifrsField,DATE_TRANSACTION%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:TextBox ID="txtDATE_TRANSACTION" CssClass="datepicker" runat="server" SkinID="dateTextWithColor"
                                onblur="datebox_onblur( this, event );"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="reqDATE_TRANSACTION" runat="server"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div>
                        <div class="collabel_single">
                            <asp:Label ID="lblSourceData" runat="server" Text="<%$Resources:ifrsField,SourceData%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:DropDownList ID="ddlSourceData" runat="server" SkinID="DropDownListWithNoColor" />
                            <asp:RequiredFieldValidator InitialValue="" ID="reqddlSourceData" runat="server"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div>
                        <div class="collabel_single">
                            <asp:Label ID="lblAccountNo" runat="server" Text="<%$Resources:ifrsField,ACCOUNTNO%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:TextBox ID="txtAccountNo" runat="server" SkinID="TextBoxWithNoColor"></asp:TextBox>
                            <asp:RequiredFieldValidator InitialValue="" ID="reqAccountNo" runat="server"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div>
                        <div class="collabel_single">
                            <asp:Label ID="lblCollateralNumber" runat="server" Text="<%$Resources:ifrsField,CollateralNumber%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:TextBox ID="txtCollateralNumber" runat="server" SkinID="TextBoxWithNoColor"></asp:TextBox>
                            <asp:RequiredFieldValidator InitialValue="" ID="reqCollateralNumber" runat="server"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div>
                        <div class="collabel_single">
                            <asp:Label ID="lblColleteralType" runat="server" Text="<%$Resources:ifrsField,ColleteralType%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <cc1:TextboxAutoComplete ID="txtColleteralType" runat="server" SkinID="TextBoxWithNoColor"></cc1:TextboxAutoComplete>
                            <asp:Button ID="btnColleteralType" runat="server" Text="..." CausesValidation="False" />
                            <asp:RequiredFieldValidator InitialValue="" ID="reqColleteralType" runat="server"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div>
                        <div class="collabel_single">
                            <asp:Label ID="lblAmount" runat="server" Text="<%$Resources:ifrsField,ColleteralValue%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <cc1:TextboxNumber ID="txtAmount" runat="server" SkinID="TextBoxWithNoColor" DigitDecimal="2"
                                TypeTextbox="Currency" />&nbsp;บาท
                            <asp:RequiredFieldValidator ID="reqAmount" runat="server"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                </div>
                <div class="colbtn">
                    <div>
                        <div>
                            <asp:Button ID="btnSAVE" SkinID="NormalButton" runat="server" Text="<%$Resources:ifrsButton,SAVE%>"
                                OnClick="btnSAVE_Click" />&nbsp;
                            <asp:Button ID="btnCANCEL" SkinID="NormalButton" runat="server" CausesValidation="false"
                                Text="<%$Resources:ifrsButton,CANCEL%>" OnClick="btnCANCEL_Click" />
                            &nbsp;
                        </div>
                    </div>
                </div>
            </fieldset>
        </div>
    </div>
    <asp:HiddenField ID="hidColleteralType" runat="server" />
    <asp:HiddenField ID="hidCollateralManualID" runat="server" />
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.core.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.datepicker.js" type="text/javascript"></script>
    <script src="../Content/plugins/custom.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $(".datepicker").initDatepicker();
        });
    </script>
</asp:Content>
